const sequelize = require("../db")
const { DataTypes } = require("sequelize");

module.exports = sequelize.define("anchor", {
    id: {
        type: DataTypes.INTEGER,
        primaryKey: true,
        autoIncrement: true
    },
    name: DataTypes.TEXT,
    game_id:DataTypes.TEXT,
    pwd: DataTypes.TEXT,
    old_fans_pwd: DataTypes.TEXT,
    start_time:DataTypes.TIME,
    end_time:DataTypes.TIME,
    silent_gap:DataTypes.NUMBER,
    active_gap:DataTypes.NUMBER,
    sentinel_id:DataTypes.INTEGER,
    network_delay: DataTypes.INTEGER,
    remark:DataTypes.TEXT
},{
    deletedAt: "deleted_at",
    paranoid: true,
});


